﻿
@{
    ViewBag.Title = "最新公告列表";
}
<style>
    /*资讯列表*/
    .centre {
        margin: 0 360px;
    }

    .crumbs {
        line-height: 70px;
        background-color: #FBFBFB;
        color: #656565;
    }

        .crumbs .fl {
            margin-right: 8px;
        }

        .crumbs .home {
            color: #1493ec;
            font-size: 14px;
            font-weight: 700;
        }

    .content {
        width: 1200px;
    }

    .home img {
        width: 246px;
        margin-top: 24px;
    }

    #main .search {
        height: 85px;
        line-height: 85px;
        text-align: right;
    }

    #main table {
        width: 100%;
    }

    #main .search input[type="text"] {
        display: inline-block;
        box-sizing: border-box;
        border: 1px solid #999999;
        padding: 0 20px;
        width: 40%;
        height: 40px;
        font-size: 16px;
        letter-spacing: .5px;
    }

    #main .search input[type="button"] {
        display: inline-block;
        box-sizing: border-box;
        border: 1px solid #48a1fe;
        margin-left: -4px;
        width: 85px;
        height: 40px;
        top: 1px;
        background: #48a1fe;
        font-size: 16px;
        color: #ffffff;
        letter-spacing: 2px;
    }

    div {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        /* Firefox */
        -webkit-box-sizing: border-box;
        /* Safari */
    }
    /*侧边导航栏*/
    #sidebar {
        width: 246px;
        background-color: #fff;
        margin-right: 14px;
    }

        #sidebar #mine {
            height: 135px;
            padding: 30px;
            background: #1393EC url("/Resource/images/globe1.jpg") no-repeat 177px 2px;
        }

            #sidebar #mine span:nth-child(1) {
                font-size: 24px;
                color: #ffffff;
                font-weight: 600;
                display: block;
            }

            #sidebar #mine span:nth-child(2) {
                margin: 5px 0 0 3px;
                font-size: 18px;
                color: #66baf6;
                display: block;
            }

        #sidebar .lefttab {
            margin-top: 20px;
        }

            #sidebar .lefttab a {
                display: block;
                box-sizing: border-box;
                padding: 0 50px;
                font-size: 16px;
                height: 50px;
                line-height: 50px;
                color: #666666;
                letter-spacing: .5px;
            }

            #sidebar .lefttab li:nth-child(3) a {
                color: #1393EE;
                background-color: #ecf3f7;
            }

    #main thead {
        background: #1493ec;
        height: 50px;
        line-height: 50px;
    }

        #main thead td {
            text-align: center;
            color: #ffffff;
        }

    #main tbody {
        text-align: center;
    }

        #main tbody tr {
            height: 45px;
            line-height: 45px;
        }

    #main tbody {
        margin: 20px;
    }

        #main tbody tr td {
            color: #ADADAD;
        }

            #main tbody tr td:nth-child(2) {
                text-align: left;
            }

                #main tbody tr td:nth-child(2) a,
                #main tbody tr td:nth-child(5) a {
                    color: #646464;
                }

    .click {
        color: #1393EE;
        background-color: #ecf3f7;
    }
</style>
<div class="centre">
    <div class="crumbs">
        <ul>
            <li class="fl"><i class="iconfont home">&#xe602;</i></li>
            <li class="fl">首页</li>
            <li class="fl">></li>
            <li class="fl">资讯中心</li>
        </ul>
    </div>
    <div id="container" class="c content">
        <div id="sidebar" class="fl">
            <div id="mine">
                <span>资讯中心</span>
                <span>INFORMATION</span>
            </div>
            <ul class="lefttab">
                <li><a href="javascript:;">最新资讯</a></li>
                <li><a href="javascript:;">工程动态</a></li>
                <li><a href="javascript:;">最新公告</a></li>
            </ul>
            <div class="home">
                <img src="/Resource/images/home.jpg" />
            </div>
        </div>
        <div id="main" class="fl c">
            <div style="height:750px">
                <div class="backlog">
                    <div class="search">
                        <input type="text" placeholder="输入你要搜索的项目名称">
                        <input type="button" value="搜索" class="pr">
                    </div>
                    <table width="100%">
                        <thead>
                            <tr>
                                <td width="100">序号</td>
                                <td width="380">标题</td>
                                <td width="150">发布人</td>
                                <td width="150">发布时间</td>
                                <td width="150">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                            <tr>
                                <td width="90">1</td>
                                <td><a href="#">本省中石油项目</a></td>
                                <td width="120">张三</td>
                                <td width="120">06-12</td>
                                <td width="120"><a href="#  ">查看</a></td>
                            </tr>
                        </tbody>
                    </table>

                    <div id="page" style="text-align:right; margin-right:5px; margin-bottom:50px;">
                        <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
                            <a href="javascript:;" class="layui-laypage-prev layui-disabled" data-page="0">上一页</a>
                            <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>1</em></span>
                            <a href="javascript:;" class="layui-laypage-next layui-disabled" data-page="2">下一页</a>
                            <span class="layui-laypage-skip">
                                到第<input type="text" min="1" value="1" class="layui-input">页
                                <button type="button" class="layui-laypage-btn">确定</button>
                            </span>
                            <span class="layui-laypage-count">共 6 条</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['layer', 'form', 'element', 'laypage'], function () {
        var layer = layui.layer, form = layui.form, element = layui.element, $ = layui.jquery, laypage = layui.laypage;
        //分页
        laypage.render({
            elem: 'page',
            count: '@ViewBag.Total',
            curr: '@ViewBag.pageIndex',
            layout: ['prev', 'page', 'next', 'skip', 'count'],
            jump: function (obj, first) {
                if (!first) {
                    //得到了当前页，用于向服务端请求对应数据
                    var curr = obj.curr;
                    var search = $("form").serialize();
                    window.location.href = "/DataConfig/Index?pageIndex=" + curr + "&" + search;
                }
            }
        });
    });
</script>
